{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ article.title }}</title>

    <link rel="stylesheet" type="text/css" href="{% static 'article/css/detail.css' %}"/>
    <style>
        /* 可以在这里添加一些自定义CSS样式 */
        .article-meta {
            color: #777;
            font-size: 0.85em;
        }
        .article-body {
            margin-top: 20px;
        }
    </style>
</head>
<body>
    {% include 'top.html' %}
    
    <div class="container my-5">
        <h1>{{ article.title }}</h1>
        <div class="article-meta">
            <span>Author: {{ article.author }}</span> |
            <span>Published: {{ article.created|date:"Y-m-d H:i" }}</span>
        </div>
        <div class="article-body">
            <!-- 正文内容，已经转换为HTML -->
            {{ article.body|safe }}
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    
    {% include 'footer.html' %}
</body>
</html>
